Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scalacOptions for sourcemapping github paths #706

Merged
merged 2 commits into from
Jan 9, 2023
Merged

Add scalacOptions for sourcemapping github paths #706

merged 2 commits into from
Jan 9, 2023

Conversation

zetashift
Copy link
Contributor

@zetashift
Copy link
Contributor Author

The CI errors out during the JS tests:

[info] [coreJS] compiling 203 Scala sources to /home/runner/work/smithy4s/smithy4s/modules/core/target/js-2.13/classes ...
[error] [coreJS] :file:/home/runner/work/smithy4s/smithy4s/.sbt/matrix/coreJS/ is not a valid URI
[error] [coreJS] one error found
[error] [coreJS] (coreJS / Compile / compileIncremental) Compilation failed
[error] Total time: 35 s, completed Jan 5, 2023, 11:58:46 PM

I feel like I'm missing something here with my changes, but I can' quite figure out yet why the test fail.

Copy link
Contributor

@Baccata Baccata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this !

@Baccata Baccata merged commit c590c8b into disneystreaming:series/0.17 Jan 9, 2023
@Quafadas
Copy link

Quafadas commented Jan 9, 2023

Thanks for this !

@zetashift Seconded :-)!

val flag =
if (scalaVersion.value.startsWith("3")) "-scalajs-mapSourceURI"
else "-P:scalajs:mapSourceURI"
val localSourcesPath = baseDirectory.value.toURI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're my hero.
I'll try to get a PR that fixes it today!

Copy link
Member

@kubukoz kubukoz Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @armanbilge <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scala JS source maps, map to CI runner dir?
6 participants